package o;

import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.hms.framework.network.restclient.hwhttp.dns.DnsConfig;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class cvr {
    private static final Map<String, Class> ˎ = new ConcurrentHashMap(DnsConfig.MAX_CACHE_ENTRIES);

    public static void ˏ(String str, Class cls) {
        ˎ.put(str, cls);
    }

    public static ResponseBean ˊ(String str) throws InstantiationException, IllegalAccessException {
        Class cls = (Class) ˎ.get(str);
        if (cls != null) {
            return (ResponseBean) cls.newInstance();
        }
        throw new InstantiationException("ResponseBean class not found, method:" + str);
    }
}
